package com.lz.hrmanager.service;

import com.lz.hrmanager.mapper.AccountMapper;
import com.lz.hrmanager.entity.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccountService {
    @Autowired
    private AccountMapper accountMapper;
    //新增
    public void add(Account account){
        accountMapper.insert(account);
    }
    //编辑
    public void edit(Account account){

    }
    //删除
    public void delete(int id){

    }
    //获取一个
    public Account get(int id){

        return null;
    }
    //获取所有
    public List<Account> getAll(){
        List<Account> all = accountMapper.getAll();
        return all;
    }
}
